'use strict';
	const db = uniCloud.database();
exports.main = async (event, context) => {
	if(!event.name){
		return {code:400 , message:'添加地区失败'}
	}else{
		let res = await db.collection('area').add(event)
		return {data:res.data , code:200 , message:"添加地区成功"}
	}

};
